﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson.Serialization;
using Shop.Core.Domain.Catalog;
using MongoDB.Bson.Serialization.Options;

namespace Shop.Data.Mongo.Catalog
{
    public class ProductMap
    {
        public void Map()
        {
            BsonClassMap.RegisterClassMap<Product>(cm =>
            {
                cm.AutoMap();
                //cm.SetIdMember(cm.GetMemberMap(p => p._id));
            });
        }
    }
}
